Skip to content

gh-152433: Windows: modernize and refactor fileutils to allow build for Windows UWP#153700

Open
thexai wants to merge 1 commit into
python:mainfrom
thexai:uwp-fileutils
Open

gh-152433: Windows: modernize and refactor fileutils to allow build for Windows UWP#153700
thexai wants to merge 1 commit into
python:mainfrom
thexai:uwp-fileutils

Conversation

@thexai

@thexai thexai commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Windows: modernize and refactor fileutils to allow build for Windows UWP

This is probably the last relevant commit missing to allow compile all Python core for UWP.

GetFileInformationByHandle is not supported in UWP, then is replaced with more modern GetFileInformationByHandleEx calls.

Also code refactored to avoid some duplicated code.

Note that Xbox (all models) runs only on Windows 11 based OS. Then is guaranteed that "fast stat" code (based on GetFileInformationByName) is supported:

if (_Py_GetFileInformationByName(path, FileStatBasicByNameInfo,

"slow stat" code path is not much relevant for UWP but also works if replaced CreateFileW with CreateFile2 (in other PR).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant